package com.dk.feign.fallback;

import com.dk.data.Result;
import com.dk.domain.TCarDTO;
import com.dk.em.ConstantEnum;
import com.dk.feign.CarSeekFeign;

import java.util.List;

public class CarSeekFeignFallback implements CarSeekFeign {

    @Override
    public Result<List<TCarDTO>> getInfoByName(String name, Integer startIndex, Integer pageSize) {
        return Result.bulid(ConstantEnum.AGTEWAY_PROXY_ERROR);
    }

    @Override
    public Result<List<TCarDTO>> getInfoByTitle(String label) {
        return Result.bulid(ConstantEnum.AGTEWAY_PROXY_ERROR);
    }

    @Override
    public Result<List<TCarDTO>> getInfoByTime(Integer startIndex, Integer pageSize) {
        return null;
    }
}
